function loginValidator(){

	var vendorCode=document.getElementById("vendorCode");
	var login=document.getElementById("loginId");
	var password=document.getElementById("password");
	if(vendorCode == null || vendorCode.value=="" || trim(vendorCode).length < 1){
		alert("Please specify Vendor code");
		vendorCode.focus();
		return false;
	}
	//alert("@@@ login"+login.value);
	if(login == null || login.value=="" || trim(login).length < 1){
		alert("Please specify user Id");
		login.focus();
		return false;
	}
	if(password == null || password.value=="" || trim(password).length < 1){
		alert("Please specify password");
		password.focus();
		return false;
	}
	document.loginform.submit();
}